package com.example.day17;

import java.io.File;

/**
 * @author Lenovo
 */
public class DiGuiDemo2 {
    public static void main(String[] args) {
        File srcFile = new File("E:\\itheima");
        getAllFilePath(srcFile);
    }
    public static void getAllFilePath(File srcFile) {
        File[] fileArray = srcFile.listFiles();
        if(fileArray != null) {
            for(File file : fileArray) {
                if(file.isDirectory()) {
                    getAllFilePath(file);
                } else {
                    System.out.println(file.getAbsolutePath());
                }
            }
            }
    }
}
